package com.estronger.shopmanage.ui.othertask.bean;

import com.soonfor.evaluate.bean.AttachDto;
import com.soonfor.evaluate.tools.CommonUtils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by dingyg on 2018/10/24.
 * 主动追踪及回访任务详情实体
 */

public class OtherTaskDetailBean implements Serializable {

    private String fplantaskid;//任务id
    private int fplantasktype;//任务类型：5.主动追踪任务，6.回访任务
    private int fprocstate;//任务状态:0.未开始，1.进行中，2.已完成，3.未能完成，4.已取消
    private String fprocstatedesc;//状态描述
    private String fcdate;//发布时间
    private String fpoint;//工分
    private String fcname;//客户名称
    private String fsexdesc;//客户性别
    private String fmobile;//手机
    private String fdistrictname;//地区
    private String faddress;//地址
    private int fexectype;//执行类型,0.电话，1.上门，2.邮寄，3.自主执行，4.系统执行
    private String fexectypedesc;//执行类型描述
    private String ftitle;//任务标题
    private String ftext;//任务内容
    private String ftaskno;//任务号

    private int ftaskmode;//任务方式:0.单次任务，1.期限任务
    private String fplantime;//计划开始时间
    private String fplantime2;//计划截止时间

    private String fordno;//订单号
    private String fordtypedesc;//订单类型描述
    private int fexecstate;//执行结果状态
    private String fexecstatedesc;//执行结果状态描述
    private String fexecutedt;//执行时间
    private String fnote;//执行情况
    private String fmaildesc;//邮寄信息
    private String fservicetaskid;//服务任务id
    private String fservicetasktype;//服务任务类型,.0.待办任务，1.量尺，2.设计，3.复尺，4.放样，5.送货，6.安装
    private String fserviceprjname;//服务项目名称
    private String fsalesid;//服务员工id
    private String fsalesname;//服务员工名称
    private String femptypedesc;//服务员工岗位类型描述
    private String ffinishdate;//服务完成时间

    private List<AttachDto> attachs;//处理结果附件对象

    public String getFplantaskid() {
        return CommonUtils.formatStr(fplantaskid);
    }

    public int getFplantasktype() {
        return fplantasktype;
    }

    public int getFprocstate() {
        return fprocstate;
    }

    public String getFprocstatedesc() {
        return CommonUtils.formatStr(fprocstatedesc);
    }

    public String getFcdate() {
        return CommonUtils.formatStr(fcdate);
    }

    public String getFpoint() {
        return CommonUtils.formatNum(fpoint);
    }

    public String getFcname() {
        return CommonUtils.formatStr(fcname);
    }

    public String getFsexdesc() {
        return CommonUtils.formatStr(fsexdesc);
    }

    public String getFmobile() {
        return CommonUtils.formatStr(fmobile);
    }

    public String getFdistrictname() {
        return CommonUtils.formatStr(fdistrictname);
    }

    public String getFaddress() {
        return getFdistrictname() + CommonUtils.formatStr(faddress);
    }

    public int getFexectype() {
        return fexectype;
    }

    public String getFexectypedesc() {
        return CommonUtils.formatStr(fexectypedesc);
    }

    public String getFtitle() {
        return CommonUtils.formatStr(ftitle);
    }

    public String getFtext() {
        return CommonUtils.formatStr(ftext);
    }

    public String getFtaskno() {
        return CommonUtils.formatStr(ftaskno);
    }

    public int getFtaskmode() {
        return ftaskmode;
    }

    public String getFplantime() {
        return CommonUtils.formatStr(fplantime);
    }

    public String getFplantime2() {
        return CommonUtils.formatStr(fplantime2);
    }

    public String getFordno() {
        return CommonUtils.formatStr(fordno);
    }

    public String getFordtypedesc() {
        return CommonUtils.formatStr(fordtypedesc);
    }

    public int getFexecstate() {
        return fexecstate;
    }

    public String getFexecstatedesc() {
        return CommonUtils.formatStr(fexecstatedesc);
    }

    public String getFexecutedt() {
        return CommonUtils.formatStr(fexecutedt);
    }

    public String getFnote() {
        return CommonUtils.formatStr(fnote);
    }

    public String getFmaildesc() {
        return CommonUtils.formatStr(fmaildesc);
    }

    public String getFservicetaskid() {
        return CommonUtils.formatStr(fservicetaskid);
    }

    public String getFservicetasktype() {
        int serType = Integer.parseInt(CommonUtils.formatNum(fservicetasktype));
        switch (serType){
            case 0:
                return "执行人";
            case 1:
                return "测量员";
            case 2:
                return "设计师";
            case 3:
                return "测量员";
            case 4:
                return "放样员";
            case 5:
                return "送货员";
            case 6:
                return "安装员";
        }
        return "";
    }

    public String getFserviceprjname() {
        return CommonUtils.formatStr(fserviceprjname);
    }

    public String getFsalesid() {
        return CommonUtils.formatStr(fsalesid);
    }

    public String getFsalesname() {
        return CommonUtils.formatStr(fsalesname);
    }

    public String getFemptypedesc() {
        return CommonUtils.formatStr(femptypedesc);
    }

    public String getFfinishdate() {
        return CommonUtils.formatStr(ffinishdate);
    }

    public List<AttachDto> getAttachs() {
        return attachs==null?new ArrayList<AttachDto>():attachs;
    }
}
